#include "dialoginputpasswd.h"
#include "ui_dialoginputpasswd.h"

DialogInputPasswd::DialogInputPasswd(QWidget *parent) :
    MoveDialog(parent),
    ui(new Ui::DialogInputPasswd)
{
    ui->setupUi(this);
}

DialogInputPasswd::~DialogInputPasswd()
{
    delete ui;
}

void DialogInputPasswd::on_btn_connect_clicked()
{
    QString pass = ui->ed_passwd->text().remove(QRegExp("\\s"));
    emit connectRemoteDevice(pass);
    this->hide();
}
